<?php
include 'mysql.php';
$site_result = $mysqli->query("select * from base_info WHERE id = 1");
$site = $site_result->fetch_assoc();
?>
<!DOCTYPE HTML>
<html>
<head>
<title>交友天地</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href='http://fonts.useso.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<script src="js/jquery.js"></script>
<script type="text/javascript">
    var is_login = 0 ;
    <?php if(isset($_COOKIE['name'])&&!empty($_COOKIE['name'])):?>
    is_login = 1 ;
    <?php endif;?>
</script>

</head>
<body>
<!-- header -->
	<div class="header">
		<div class="container">
			<div class="logo">
				<a href="index.php"><img width="115" height="95" src="<?php echo $site['logo'];?>" class="img-responsive" alt="" /></a>
			</div>
			<div class="header-right">
				<div class="header-top">
					<ul>
                        <?php if(isset($_COOKIE['name'])&&!empty($_COOKIE['name'])):?>
                            <li>hi,<?php echo $_COOKIE['name'] ;?>,欢迎来到交友天地</li>
                            <li><a href="/index.php?unset=1">退出</a></li>
                        <?php else:?>
                            <li><a href="#login">登录</a></li>
                            <li><a href="#login">注册</a></li>
                        <?php endif;?>
                        <li><a href="admin.php">管理后台</a></li>
                        <li><a href=""><img src="images/message.png" width="24" height="12" style="margin-left:30px;"></a></li>
						<li><a href="#"><i class="fb"> </i></a></li>
						<li><a href="#"><i class="twt"> </i></a></li>
						<li><a href="#"><i class="rs"> </i></a></li>
						<li><a href="#"><i class="bg"> </i></a></li>
						<li><a href="#"><i class="msg"> </i></a></li>
						<li><a href="#"><i class="md"> </i></a></li>
                        <div class="clearfix"></div>
					</ul>
				</div>
				<div class="head-nav">
					<span class="menu"> </span>
						<ul class="cl-effect-15">
							<li <?php if($_SERVER['PHP_SELF']=='/index.php'):?>class="active"<?php endif;?>><a href="index.php">首页</a></li>
							<li <?php if($_SERVER['PHP_SELF']=='/contact.php'):?>class="active"<?php endif;?>><a href="contact.php">联系我们</a></li>
								<div class="clearfix"> </div>
						</ul>
				</div>

			</div>
				<div class="clearfix"> </div>
		</div>
	</div>
<!-- header -->